import request from '@/common/request'

// 后勤档口统计
export function managerStatistics () {
    return request({
        url: '/manager/statistics',
        method: 'get'
    })
}
// 后勤入库列表查询
export function managerPageManagerInDate (params) {
    return request({
        url: '/manager/pageManagerInDate',
        method: 'get',
        params
    })
}

// 出库
//
export function outStoreApi (stallReportId) {
    return request({
        url: `/manager/outStore/${stallReportId}`,
        method: 'get'
    })
}

// 入库
//
export function inStoreApi (data) {
    return request({
        url: `/manager/inStore`,
        method: 'post',
        data
    })
}

// 入库周
//
export function pageManagerInRecordWeek () {
    return request({
        url: `/manager/pageManagerInRecordWeek`,
        method: 'get'
    })
}

// 入库月
//
export function pageManagerInRecordMonth () {
    return request({
        url: `/manager/pageManagerInRecordMonth`,
        method: 'get'
    })
}
export function pageManagerInRecordYear () {
    return request({
        url: `/manager/pageManagerInRecordYear`,
        method: 'get'
    })
}

// 今日未出库，已出库
//
export function outToday (params) {
    return request({
        url: `/out/outToday`,
        method: 'get',
        params
    })
}
// 某日的出库
//
export function dateOut (params) {
    return request({
        url: `/out/dateOut`,
        method: 'get',
        params
    })
}
// 出库周
//
export function weekOutSta () {
    return request({
        url: `/out/weekOutSta`,
        method: 'get'
    })
}
// 出库月
//
export function monthOutSta () {
    return request({
        url: `/out/monthOutSta`,
        method: 'get'
    })
}
// 年
//
export function yearOutSta () {
    return request({
        url: `/out/yearOutSta`,
        method: 'get'
    })
}
// 出库
//
export function outStore (stallReportId) {
    return request({
        url: `/manager/outStore/${stallReportId}`,
        method: 'get'
    })
}
